#include "neuralnetwork.h"

int main()
{
	NeuralNetwork brain({ 2,4,1} );
	for(int i = 0; i < 10000; i++)
	{
		brain.train( {0.0, 0.0}, {0.0} );
		brain.train( {0.0, 1.0}, {1.0} );
		brain.train( {1.0, 0.0}, {1.0} );
		brain.train( {1.0, 1.0}, {0.0} );
	}
	Value r = brain.run( {1, 0} );
	printf("%f\n", r[0]);
	return 0;
}

